﻿package app.view {	import com.bumpslide.ui.Component;	import com.bumpslide.util.Align;	import flash.display.MovieClip;	import flash.events.MouseEvent;	[Event(name='headerLogoClick', type='com.bumpslide.events.UIEvent')]	/**	 * Header with logo and section buttons	 * 	 * @author David Knape	 */	public class Header extends Component 	{		public static const EVENT_LOGO_CLICK:String = "headerLogoClick";		// display objects on the stage				public var bg:MovieClip;		public var logo:MovieClip;		public var buttons:MovieClip;						/**		 * Init		 */		override protected function addChildren():void 		{						logo.addEventListener(MouseEvent.CLICK, eventDelegate(sendEvent, EVENT_LOGO_CLICK));					}				/**		 * Update Display List		 */		override protected function draw():void 		{				if(hasChanged(VALID_SIZE)) {				bg.width = width;				Align.right(buttons, width - 10);			}						super.draw();		}	}}